package full

import (
	"db2s/ETL"
	"db2s/parDef"
	"db2s/ref"
)

func (gol Gol) golEr(drive string) (ter GolEr, err error) {
	if ter, err = NewGolStatus(drive); err != nil {
		err = ref.ErrAddPrintf("pos.posEr", err)
		return
	}
	return
}
func GetDbQueryOptions(parameter parDef.Parameter) ETL.InstanceActiveS {
	return ETL.InstanceActiveS{
		DB:       parameter.Con,
		FixRows:  parameter.Options.FixRows,
		StopTime: parameter.Options.StopTime,
		SqlMode:  parameter.Options.SqlMode}
}
func (gol Gol) posit() (meta any, err error) {
	//var ter GolEr
	//if meta, err = parDef.CallMethod(gol.Drive, gol.Join, func(k int, v string) (result global.Return, err error) {
	//	if ter, err = gol.golEr(v); err != nil {
	//		return
	//	}
	//	if result, err = ter.Position(parDef.CtxBackground(parDef.GeneralMethodParameter(gol.Parameter1[k], ExternalCallColumnCommentFunc, dataDispos.SMap))); err != nil {
	//		return
	//	}
	//	return
	//}); err != nil {
	//	err = ref.ErrAddPrintf("columnComment", err)
	//	return
	//}
	return
}
func GetGolPosition(gol Gol) (pos any, err error) {
	return gol.posit()
}
